package cn.jcet.gumall.ware.service;

import cn.jcet.gumall.ware.vo.PurchaseDataVo;
import cn.jcet.gumall.ware.vo.PurchaseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.jcet.common.utils.PageUtils;
import cn.jcet.gumall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author coder_yang
 * @email 1546656922@qq.com
 * @date 2020-06-28 21:41:04
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnreceiveByPurchase(Map<String,Object> params);

    void saveMergePurchase(PurchaseVo purchaseVo);

    /**
     * 领取采购单
     * @param ids
     */
    void receivedPurchase(List<Long> ids);

    /**
     * 采购完成
     * @param purchaseDataVo
     */
    void done(PurchaseDataVo purchaseDataVo);
}

